<!--S 主体-->
<div class="main" id="home">
  <!--S 列2-->
  <div class="lay2_row_2">
    <!--S 主页导航-->
    <%= render(:partial => "/shared/profile_nav") %>
    <!--E 主页导航-->
    <div class="lay2_r2_r1" id="centerarea">
      <!--S 最新照片-->
      <div id="home_new_photo" class="mod new_photo" style="display: none">
        <!--S 标题栏-->
        <div class="title bg_1">
          <h3>最新照片</h3>
          <a href="/user/gphoto.htm#uin=174477133" class="title_link" id="photo_link">更多</a>
        </div>
        <!--E 标题栏-->
        <!--S 展示内容-->
        <div class="content" id="photolist">
          <ul class="list">
            <li>
              <a href="/user/gviewphoto.htm#uin=174477133&amp;aid=35704157&amp;id=0" class="photo_2" title="">
                <img src="http://a1.photo.store.qq.com/http_imgload.cgi?/rurl4_s=69f34208661f1e9d0f17492d55e5e4dc50522b990cdae5c39c6820165f14e2409f8eb640e3c75db3fb2b24bcd50d5a3766f757012ada42176175de6d9dacc785e7113130539d3627516ebbf8c0aeb4aa7bafba5b&amp;a=1&amp;b=1 "/>
              </a>
            </li>
          </ul>
        </div>
        <!--E 展示内容-->
      </div>
      <!--E 最新照片-->

      <!--S 最新日志-->
      <div id="home_new_blog" class="mod new_blog" style="">
        <!--S 标题栏-->
        <div class="title bg_1">
          <h3>最新日志</h3>
          <a href="/user/gbloglist.htm#uin=174477133" class="title_link" id="blog_link">更多</a>
        </div>
        <!--E 标题栏-->
        <!--S 展示内容-->
        <div class="content" id="bloglist">
          <ul class="list">
            <% for blog in Blog.recent_blogs %>
              <li>
                <div class="tit_bar bg_4">
                  <p class="blog_tit">
                    <%= image_tag "icon.gif", :alt=> "日志", :class => "icon_blog" %>
                    <%= link_to (h blog[:title]), member_blog_path(@member,blog) %>
                  </p>
                  <p class="time">
                    <span class="c_2"><%= status_time_ago_in_words blog[:created_at] %></span>&nbsp;&nbsp;
                    <button name="blogfold" onclick="foldBlog('1257363366',this)">
                      <%= image_tag "icon.gif", :alt=> "收起", :class => "icon_up" %><span>收起</span>
                    </button>
                  </p>
                </div>
                <div class="blog_preview" style="display:block">
                  <p class="section" id="con_1257363366"><%=sanitize blog[:content] %></p>
                  <p>
                    <a href="/user/greadblog.htm#uin=174477133&amp;id=1257363366">查看全文</a>&nbsp;&nbsp;
                    <span>浏览(<%= link_to blog[:view], member_blog_path(@member,blog) %>)</span>
                    <span>评论(<%= link_to blog.comments.recent.size, member_blog_path(@member,blog) %>)</span>
                  </p>
                </div>
              </li>
            <% end %>
          </ul>
        </div>
      </div>
      <!--E 最新日志-->

      <!-- 他的发帖 开始 -->
      <div id="ta_post_message" class="mod">
        <div class="title bg_1">
          <h3 id="tapost">他的发帖</h3>
          <a href="/user/gJoinGroup.htm#uin=174477133&amp;x=a&amp;page=1" class="title_link" id="post_link">更多</a>
        </div>
        <div class="content" id="postlist">
          <div id="postlist_tpl">
            <table>
              <tr>
                <th class="tit_posts bor_b_3 bor_r_3"><span>标题</span></th>
                <th class="what_in_group bor_b_3"><span>所在兴趣组</span></th>
              </tr>

              <tr>
                <td class="bor_b_3 bor_r_3"><a href="/group/thread.htm#gid={groupId}&postid={id}{urlext}" target="_blank">{title}</a></td>
                <td class="bor_b_3"><a href="/group/board.htm#gid={groupId}" target="_blank">{groupName}</a></td>
              </tr>
            </table>
          </div>
        </div>
      </div>
      <!-- 他的发帖 结束 -->

      <!--S 客人态FEED-->
      <div id="home_guest_feed" class="mod guest_feed">
        <!--S 标题栏-->
        <div class="title bg_1">
          <h3 id="tafeedtitle">他的动静</h3>
        </div>
        <!--S 标题栏-->
        <!--S Feed列表-->
        <ul class="list" id="tafeed">

          <li class="bor_b_1">
            <p class="feed">BetaNG  加入群组<a href="http://city.qq.com/group/board.htm#gid=1041923">《城市达人重庆交友圈》</a></p>
            <p class="time c_2">18天前</p>

          </li>

        </ul>
        <!--E Feed列表-->
      </div>
      <!--E 客人态FEED-->
    </div>
    <!--S 列2_列2-->
    <div class="lay2_r2_r2">
      <!--S 最近访客-->
      <%= render(:partial => "visitors") %>
      <!--E 最近访客-->
      <!--S 好友秀-->
      <%= render(:partial => "friends") %>
      <!--E 好友秀-->
    </div>
    <!--S 列2_列2-->
  </div>
  <!--E 列2-->
  <!--S 列1-->
  <div class="lay2_row_1">
    <div class="bor_2 my_photo" id="home_user_img">
      <div class="bor_b_3">
        <p class="user_img" id="user_bigurl">
          <a href="#"><%= image_tag member_big_avatar_url(@member), :alt => "#{@member[:nick]}",:width => 200, :height => 200 %></a>
        </p>
      </div>
      <ul class="list">
        <li class="list_a"><%=image_tag "icon.gif", :alt =>"发小纸条", :class=>"icon_msg" %><a href="javascript:toSendSlip(arg.uin)">发小纸条</a></li>
        <li class="list_b" id="poke_act"><%=image_tag "icon.gif", :alt =>"打个招呼" , :class=>"icon_hi" %><a href="javascript:toSendPoke(arg.uin)">打个招呼</a></li>
        <% if !is_friend @member %>
          <li class="list_a" id="addf_act"><%=image_tag "icon.gif", :alt =>"加为好友" , :class=>"icon_add" %><%= link_to_remote "加为好友", :url=>"/friendships/create/#{@member[:id]}", :method => :post%></li>
        <% end %>
        <li class="list_b" id="gift_act"><%=image_tag "icon.gif", :alt =>"送礼物" , :class=>"icon_present" %><a href="javascript:toSendPresent(arg.uin);">送<span id="sp_ta">TA</span>礼物</a></li>
        <li class="list_a" id="msg_act"><%=image_tag "icon.gif", :alt =>"发送留言" , :class=>"icon_msg_board" %><a href="javascript:toSendMsg(arg.uin);">发送留言</a></li>
        <li class="list_b" id="match_act"><%=image_tag "icon.gif", :alt =>"缘分匹配" , :class=>"icon_luck" %><a href="javascript:;" id="luck_link">缘分匹配</a></li>
        <li class="list_a" id="song_act"><%=image_tag "icon.gif", :alt =>"点歌" , :class=>"icon_musicbox" %><a href="javascript:toSendUserSong(arg.uin,'');" id="send_song_link">给TA点歌</a></li>
      </ul>
    </div>
    <!--S 我的动静-->
    <div id="home_info_table" class="bor_2 info_table">
      <!--S 个人资料-->
      <div class="title bg_3">
        <h3>个人资料</h3>
        <%= link_to "更多", member_path(@member), :class=>"title_link"%>
      </div>
      <table class="content" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <th class="c_2">性别：</th>
            <td id="p_sex_chn"><%= @member[:sex] %></td>
          </tr>
          <tr>
            <th class="c_2">星座：</th>
            <td id="p_astro"><%= astro(@member[:birthday]) if @member[:birthday]%></td>
          </tr>
          <tr>
            <th class="c_2">生日：</th>
            <td id="p_birthday"><%= @member[:birthday] %></td>
          </tr>
          <tr>
            <th class="c_2">血型：</th>
            <td id="p_bloodtype_chn"><%= @member[:blood] %></td>
          </tr>
          <tr>
            <th class="c_2">学校：</th>
            <td id="p_job_chn"><%= @member[:university] %></td>
          </tr>
          <tr>
            <th class="c_2">专业：</th>
            <td id="p_edu_chn"><%= @member[:major] %></td>
          </tr>
        </tbody>
      </table>
    </div>
    <!--E 个人资料-->
    <!--S 我的兴趣活动-->
    <div class="bor_2 my_act" id="home_my_act">
      <!--S 搜索标题-->
      <div class="title bg_3">
        <h3>我的兴趣活动</h3>
        <a href="/user/myAllAct.htm" class="title_link">更多</a>
      </div>
      <ul class="list" id="actlist">
      </ul>
    </div>
    <!--E 我的兴趣活动-->
    <!--S 我的兴趣组-->
    <div class="bor_2 my_group" id="home_my_group">
      <!--S 搜索标题-->
      <div class="title bg_3">
        <h3>我的兴趣组</h3>
        <a href="/user/myAllGroup.htm" class="title_link">更多</a>
      </div>
      <ul class="list" id="grouplist">
      </ul>
    </div>
    <!--E 我的兴趣组-->
    <!--S 收到的礼物-->
    <div class="mod present_recieve" id="home_present_recieve">
      <!--S Tags-->
      <div class="title bg_1">
        <h3>收到的礼物</h3>
        <a href="/html/giftmain.htm" class="title_link">送礼物</a>
      </div>
      <!--E Tags-->
      <ul class="list" id="gift_us">
      </ul>
    </div>
    <!--E 收到的礼物-->
  </div>
  <!--E 列1-->
</div>
<!--E 主体-->